Relating Church-Style and Curry-Style Subtyping

نویسندگان

  • Adriana B. Compagnoni
  • Healfdene Goguen
چکیده

Type theories with higher-order subtyping or singleton types are examples of systems where computation rules for variables are affected by type information in the context. A complication for these systems is that bounds declared in the context do not interact well with the logical relation proof of completeness or termination. This paper proposes a natural modification to the type syntax for Fω ≤ , adding a variable’s bound to the variable type constructor, thereby separating the computational behavior of the variable from the context. The algorithm for subtyping in Fω ≤ can then be given on types without context or kind information. As a consequence, the metatheory follows the general approach for type systems without computational information in the context, including a simple logical relation definition without Kripke-style indexing by context. This new presentation of the system is shown to be equivalent to the traditional presentation without bounds on the variable type constructor.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

On the relation between Church - style typing and Curry - style typing : Extended Abstract ∗

There are two versions of type assignment in λ-calculus: Church-style, in which the type of each variable is fixed, and Curry-style (also called “domain free”), in which it is not. As an example, in Church-style typing, λx : A . x is the identity function on type A, and it has type A → A but not B → B for a type B different from A. In Curry-style typing, λx.x is a general identity function with...

متن کامل

Bridging Curry and Church's typing style

There are two versions of type assignment in the λ-calculus: Church-style, in which the type of each variable is fixed, and Currystyle (also called “domain free”), in which it is not. As an example, in Church-style typing, λx:A.x is the identity function on type A, and it has type A → A but not B → B for a type B different from A. In Currystyle typing, λx.x is a general identity function with t...

متن کامل

Decidable structures between Church-style and Curry-style

It is well-known that the type-checking and type-inference problems are undecidable for second order λ-calculus in Curry-style, although those for Church-style are decidable. What causes the differences in decidability and undecidability on the problems? We examine crucial conditions on terms for the (un)decidability property from the viewpoint of partially typed terms, and what kinds of type a...

متن کامل

Existential type systems between Church and Curry style (type-free style)

We study type checking, typability, and type inference problems for type-free style and Curry style second-order existential systems where the type-free style differs from the Curry style in that the terms of the former contain information on where the existential quantifier elimination and introduction take place but omit the information on which types are involved. We show that all the proble...

متن کامل

Curry-style type Isomorphisms and Game Semantics

Curry-style system F, i.e. system F with no explicit types in terms, can be seen as a core presentation of polymorphism from the point of view of programming languages. This paper gives a characterisation of type isomorphisms for this language, by using a game model whose intuition comes both from the syntax and fromthe game semantics universe. Themodel is composed of: an untyped part to interp...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2010